package com.d2.modules.system.permission.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.d2.common.domain.BaseEntity;
import com.d2.common.excel.ExcelExport;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_user")
public class User extends BaseEntity {
    @ExcelExport(value = "用户名", columnWidth = 30)
    private String username;
    private String password;
    private String name;
    private String nickname;
    private String mobile;
    private String avatar;
    private Integer gender;
    private String email;
    private Long deptId;

    @TableField(exist = false)
    private List<Long> roles;
//    private Long roleId;
}
